package com.alks.yn_zs.controller;

import com.alks.common.aop.ApiRestController;

import com.alks.common.aop.WebLogger;
import com.alks.entity.data.page.PageParam;
import com.alks.entity.data.response.ResponseInfo;
import com.alks.yn_zs.data.request.StatsRequest;
import com.alks.yn_zs.service.StitchUpperShowService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @description: 鞋面看板
 */
@Slf4j
@RestController
@ApiRestController("/show/stitchUpperShow")
@Api(value = "生产", tags = "鞋面仓目视管理看板")
public class StitchUpperShowController {

    @Resource
    private StitchUpperShowService stitchUpperShowService;

    @WebLogger
    @PostMapping("/getDayStitchInOutQty")
    @ApiOperation(value = "日出入库状况", tags = "鞋面仓目视管理看板")
    public ResponseInfo getDayStitchInOutQty() {
        return stitchUpperShowService.getDayStitchInOutQty();
    }

    @WebLogger
    @PostMapping("/getMonthStitchInOutQty")
    @ApiOperation(value = "月出入库状况", tags = "鞋面仓目视管理看板")
    public ResponseInfo getMonthStitchInOutQty() {
        return stitchUpperShowService.getMonthStitchInOutQty();
    }

    @WebLogger
    @PostMapping("/getMonthDetailStitchInOutQty")
    @ApiOperation(value = "月出入库明细状况", tags = "鞋面仓目视管理看板")
    public ResponseInfo getMonthDetailStitchInOutQty() {
        return stitchUpperShowService.getMonthDetailStitchInOutQty();
    }

    @WebLogger
    @PostMapping("/getStitchUpperDetail")
    @ApiOperation(value = "鞋面库存明细", tags = "鞋面仓目视管理看板")
    public ResponseInfo getStitchUpperDetail(@RequestBody PageParam pageParam) {
        return stitchUpperShowService.getStitchUpperDetail(pageParam);
    }


}
